https://ai.google.dev/api/generate-content
Input
:
[Shortcut Input]
Workflow
:
{ "workflowIdentifier": "F1322BB9-5821-4A59-AE61-84D4DF38EAE0", "workflowName": "isDictionary", "isSelf": false }

[Shortcut Input as Dictionary.prompt] [Shortcut Input as Dictionary.content]

Input
:
[6 If Result]
Workflow
:
{ "workflowIdentifier": "01C66C6E-825F-4ABF-90D6-56541924A04C", "workflowName": "Sanity Check JSON String", "isSelf": false }

{ "contents": [{ "parts":[{"text": "[7 Shortcut Result]"}] }] }
keyPath
:
API Credentials.Google

inputType
:
text
value
:
[9 Value as Dictionary.apiKeyGemini]
dictionary
:
[? Dictionary]
name
:
key

path
:
/v1beta/models/gemini-2.0-flash:generateContent
host
:
generativelanguage.googleapis.com
queryItems
:
[10 Query Item]

RequestVariable
:
[8 Text]
HTTPHeaders
:
{ "Content-Type": "application/json" }
ShowHeaders
:
true
HTTPMethod
:
POST
HTTPBodyType
:
File


Input
:
[14 Dictionary Value]
Workflow
:
{ "workflowIdentifier": "DAB244B1-0299-4B66-A0F1-726F17ED5A84", "workflowName": "Get Plain Text from Markdown", "isSelf": false }
editorTitle
:
‏‎ ‎‎\u{space}
shouldEdit
:
1
text
:
[15 answer]